Optimal. Leaf size=166 \[ \frac{\sqrt{\frac{\pi }{2}} \sqrt{d} e^{\frac{2 b c}{d}-2 a} \text{Erf}\left (\frac{\sqrt{2} \sqrt{b} \sqrt{c+d x}}{\sqrt{d}}\right )}{16 b^{3/2}}-\frac{\sqrt{\frac{\pi }{2}} \sqrt{d} e^{2 a-\frac{2 b c}{d}} \text{Erfi}\left (\frac{\sqrt{2} \sqrt{b} \sqrt{c+d x}}{\sqrt{d}}\right )}{16 b^{3/2}}+\frac{\sqrt{c+d x} \sinh (2 a+2 b x)}{4 b}+\frac{(c+d x)^{3/2}}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.269155, antiderivative size = 166, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 6, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {3312, 3296, 3308, 2180, 2204, 2205} \[ \frac{\sqrt{\frac{\pi }{2}} \sqrt{d} e^{\frac{2 b c}{d}-2 a} \text{Erf}\left (\frac{\sqrt{2} \sqrt{b} \sqrt{c+d x}}{\sqrt{d}}\right )}{16 b^{3/2}}-\frac{\sqrt{\frac{\pi }{2}} \sqrt{d} e^{2 a-\frac{2 b c}{d}} \text{Erfi}\left (\frac{\sqrt{2} \sqrt{b} \sqrt{c+d x}}{\sqrt{d}}\right )}{16 b^{3/2}}+\frac{\sqrt{c+d x} \sinh (2 a+2 b x)}{4 b}+\frac{(c+d x)^{3/2}}{3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3312
Rule 3296
Rule 3308
Rule 2180
Rule 2204
Rule 2205
Rubi steps
\begin{align*} \int \sqrt{c+d x} \cosh ^2(a+b x) \, dx &=\int \left (\frac{1}{2} \sqrt{c+d x}+\frac{1}{2} \sqrt{c+d x} \cosh (2 a+2 b x)\right ) \, dx\\ &=\frac{(c+d x)^{3/2}}{3 d}+\frac{1}{2} \int \sqrt{c+d x} \cosh (2 a+2 b x) \, dx\\ &=\frac{(c+d x)^{3/2}}{3 d}+\frac{\sqrt{c+d x} \sinh (2 a+2 b x)}{4 b}-\frac{d \int \frac{\sinh (2 a+2 b x)}{\sqrt{c+d x}} \, dx}{8 b}\\ &=\frac{(c+d x)^{3/2}}{3 d}+\frac{\sqrt{c+d x} \sinh (2 a+2 b x)}{4 b}-\frac{d \int \frac{e^{-i (2 i a+2 i b x)}}{\sqrt{c+d x}} \, dx}{16 b}+\frac{d \int \frac{e^{i (2 i a+2 i b x)}}{\sqrt{c+d x}} \, dx}{16 b}\\ &=\frac{(c+d x)^{3/2}}{3 d}+\frac{\sqrt{c+d x} \sinh (2 a+2 b x)}{4 b}+\frac{\operatorname{Subst}\left (\int e^{i \left (2 i a-\frac{2 i b c}{d}\right )-\frac{2 b x^2}{d}} \, dx,x,\sqrt{c+d x}\right )}{8 b}-\frac{\operatorname{Subst}\left (\int e^{-i \left (2 i a-\frac{2 i b c}{d}\right )+\frac{2 b x^2}{d}} \, dx,x,\sqrt{c+d x}\right )}{8 b}\\ &=\frac{(c+d x)^{3/2}}{3 d}+\frac{\sqrt{d} e^{-2 a+\frac{2 b c}{d}} \sqrt{\frac{\pi }{2}} \text{erf}\left (\frac{\sqrt{2} \sqrt{b} \sqrt{c+d x}}{\sqrt{d}}\right )}{16 b^{3/2}}-\frac{\sqrt{d} e^{2 a-\frac{2 b c}{d}} \sqrt{\frac{\pi }{2}} \text{erfi}\left (\frac{\sqrt{2} \sqrt{b} \sqrt{c+d x}}{\sqrt{d}}\right )}{16 b^{3/2}}+\frac{\sqrt{c+d x} \sinh (2 a+2 b x)}{4 b}\\ \end{align*}
Mathematica [A] time = 0.439951, size = 129, normalized size = 0.78 \[ \frac{1}{48} \sqrt{c+d x} \left (\frac{3 \sqrt{2} e^{2 a-\frac{2 b c}{d}} \text{Gamma}\left (\frac{3}{2},-\frac{2 b (c+d x)}{d}\right )}{b \sqrt{-\frac{b (c+d x)}{d}}}-\frac{3 \sqrt{2} e^{\frac{2 b c}{d}-2 a} \text{Gamma}\left (\frac{3}{2},\frac{2 b (c+d x)}{d}\right )}{b \sqrt{\frac{b (c+d x)}{d}}}+\frac{16 (c+d x)}{d}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.08, size = 0, normalized size = 0. \begin{align*} \int \left ( \cosh \left ( bx+a \right ) \right ) ^{2}\sqrt{dx+c}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.54858, size = 255, normalized size = 1.54 \begin{align*} -\frac{\frac{3 \, \sqrt{2} \sqrt{\pi } d \operatorname{erf}\left (\sqrt{2} \sqrt{d x + c} \sqrt{-\frac{b}{d}}\right ) e^{\left (2 \, a - \frac{2 \, b c}{d}\right )}}{b \sqrt{-\frac{b}{d}}} - \frac{3 \, \sqrt{2} \sqrt{\pi } d \operatorname{erf}\left (\sqrt{2} \sqrt{d x + c} \sqrt{\frac{b}{d}}\right ) e^{\left (-2 \, a + \frac{2 \, b c}{d}\right )}}{b \sqrt{\frac{b}{d}}} - 32 \,{\left (d x + c\right )}^{\frac{3}{2}} - \frac{12 \, \sqrt{d x + c} d e^{\left (2 \, a + \frac{2 \,{\left (d x + c\right )} b}{d} - \frac{2 \, b c}{d}\right )}}{b} + \frac{12 \, \sqrt{d x + c} d e^{\left (-2 \, a - \frac{2 \,{\left (d x + c\right )} b}{d} + \frac{2 \, b c}{d}\right )}}{b}}{96 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.21522, size = 1438, normalized size = 8.66 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{c + d x} \cosh ^{2}{\left (a + b x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{d x + c} \cosh \left (b x + a\right )^{2}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]